package com.yiwenup.leave.sample.domain.leave.repository.po;

import com.yiwenup.leave.sample.domain.leave.entity.Leave;
import com.yiwenup.leave.sample.domain.leave.entity.vo.LeaveType;
import com.yiwenup.leave.sample.domain.leave.entity.vo.Status;
import com.yiwenup.leave.sample.domain.person.entity.vo.PersonType;
import lombok.Data;

import java.util.*;

@Data
public class LeavePO {

    String id;
    String applicantId;
    String applicantName;
    PersonType applicantType;
    String approverId;
    String approverName;
    LeaveType leaveType;
    Status status;
    Date startTime;
    Date endTime;
    long duration;
    List<ApprovalInfoPO> historyApprovalInfoPOList;

    public Leave toLeave() {
        return new Leave();
    }

}
